<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <table border="1" width='980' bordercolor='#000'>
        <tr>
            <th>编号</th>
            <th>名称</th>
            <th>价格</th>
            <th>操作</th>
        </tr>
        <?php foreach ($list as $rows) : ?>
        <tr>
            <td>
                <?= $rows['proID'] ?>
            </td>
            <td>
                <?= $rows['proname'] ?>
            </td>
            <td>
                <?= $rows['proprice'] ?>
            </td>
            <td><a href="index.php?c=Products&a=del&proid=<?= $rows['proID']?>" onclick="return confirm('确定要删除吗')">删除</a></td>
        </tr>
        <?php endforeach; ?>
    </table>
</body>

</html>